﻿using Api.BLL;
using Api.Web.filter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Api.Web.Controllers
{    
    public class ErrorCodeController : BaseController
    {
        // GET: ErrorCode
        public ActionResult List(int projectId)
        {
            var list=ErrorCodeBLL.Current.GetList(s => s.ProjectId == projectId && s.UserId == userId);
            if (list == null) return View("_500");
            
            return View(list);
        }
    }
}